//
//  ConnectorViewController.h
//  CocoaSynth
//
//  Created by Thomas Dupont on 19/02/10.
//  Copyright 2010 Apple Inc. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@protocol ConnectorProtocol;

@class PortInViewController;
@class PortOutViewController;
@class ConnectorLayoutViewController;
@class PortViewController;

@interface ConnectorViewController : NSViewController {
	ConnectorLayoutViewController* layout;
	id<ConnectorProtocol> model;
	PortInViewController* portIn;
	PortOutViewController* portOut;
}

@property (readonly) PortInViewController* portIn;
@property (readonly) PortOutViewController* portOut;

- (id)initWithLayout:(ConnectorLayoutViewController*)aLayout andPortIn:(PortInViewController*)aPortIn andPortOut:(PortOutViewController*)aPortOut;

- (NSPoint)pointForPort:(PortViewController*)aPort;

- (void)refresh;

- (BOOL)containsPort:(PortViewController*)aPort;

- (void)disconnect;

@end
